package com.example.sms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("class")
@Schema(description = "班级管理")
public class Classes {
    @TableId(type = IdType.AUTO)
    @Schema(description = "主键id")
    private Integer id;
    @Schema(description = "班级名称")
    private String className;
    @Schema(description = "班主任")
    private String headTeacher;
    @Schema(description = "学生人数")
    private Integer studentNum;

}
